<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box {
            width: 200px;
            height: 200px;
            background: repeating-linear-gradient(-45deg, #f00 0 10px, #fff 10px 20px, #4487d4 20px 30px, #fff 30px 40px) 0 0 / 200% 200%;
            padding: 5px;
            border-radius: 5px;
            transition: background-position 0.5s;
        }

        #box:hover {
            background-position: -20px -20px;
        }

        #card {
            background: #fff;
            width: 100%;
            height: 100%;
            border-radius: inherit;
        }
    </style>
</head>

<body>
    <div id="box">
        <div id="card">
            Lorem ipsum dolor sit, amet consectetur adipisicing elit. Magni, distinctio doloremque? Non nam animi
            eum nesciunt ex blanditiis mollitia quos enim.
        </div>
    </div>
</body>

</html>